const Koa = require('koa')
const app = new Koa()
const pug =require('pug')
const { pugTpl } =require('./tpl')
app.use(async (ctx, next) => {
  ctx.type = 'text/html;charset=uft-8'
  ctx.body = pug.render(pugTpl, {
    me: 'ZhangTao',
    you: 'Luke'
  })
})
app.listen(2222)